<?php 
/* SVN FILE: $Id$ */
/* Menu Test cases generated on: 2011-03-01 16:03:22 : 1298975602*/
App::import('Model', 'Menu');

class MenuTestCase extends CakeTestCase {
	var $Menu = null;
	var $fixtures = array('app.menu');

	function startTest() {
		$this->Menu =& ClassRegistry::init('Menu');
	}

	function testMenuInstance() {
		$this->assertTrue(is_a($this->Menu, 'Menu'));
	}

	function testMenuFind() {
		$this->Menu->recursive = -1;
		$results = $this->Menu->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Menu' => array(
			'id'  => 1,
			'title'  => 'Lorem ipsum dolor sit amet',
			'slug'  => 'Lorem ipsum dolor sit amet'
		));
		$this->assertEqual($results, $expected);
	}
}
?>